#ifndef COMMANDER_H
#define COMMANDER_H

#include <QVariant>
#include <QList>
#include <QString>
#include <QDebug>
#include <QFile>

class Commander
{
public:
    Commander(){}

    virtual ~Commander(){}

    /// @brief 
    /// @param strCmdName: setI, repos
    /// @param cmd 
    /// @param nParam 
    /// @return 
    int getCmd(const QString& strCmdName, quint8* cmd, int nParam=0);
    bool parseCmd(quint8 *buff, quint8 bufLen);

protected:


    void getCmd(quint8* buffIn, quint8 bufLen);
    void cal_CRC(unsigned char *strCRC, int dataLen);

protected:
    quint32 m_dwParam;
};


#endif // COMMANDER_H
